﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SAPSupplerListLookUp.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.SAPSupplerListLookUp" %>

<script type="text/javascript">
    //对已列出的物料清单进行再一次查找
    $("#SAPSupplerListLookUpSupplerName").change(function () {
        var index = 1;
        var param = $("#SAPSupplerListLookUpSupplerName").val();
        $('div.gridTbody', $.pdialog.getCurrent()).find('tr').each(function () {
            $(this).show();
            var targetText = $($(this).find('td').get(0)).text();
            if (targetText.indexOf(param) == -1) {
                $(this).hide();
            }

        });
        //处理显示
        var $firstRow = $('div.gridTbody', $.pdialog.getCurrent()).find("tr:first");
        var $firstShowRow = $('div.gridTbody', $.pdialog.getCurrent()).find("tr:visible:first");
        $firstShowRow.find("td").each(function (index) {
            $(this).css("width", $($firstRow.find('td')[index]).css("width"));
        })
    });
</script>
<form id="form1" runat="server" method="post">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    供应商： <input id="SAPSupplerListLookUpSupplerName" name="SupplerName" type="text" value=""  />
                </td>
                
            </tr>
        </table>
    </div>
</div>
<div class="pageContent">
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="65" targetType="dialog">
        <thead>
            <tr  >                
                <th >供应商简称</th>
                <th >全称</th>   
                <th >选中</th>             
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr >
                <td><%# Eval("AliasName")%></td>
				<td><%# Eval("CardName")%></td>
			    <td>
					<a class="btnSelect" href="javascript:$.bringBack({SupplerName:'<%# Eval("AliasName") %>',target:'<%=target %>',rel:'<%=rel %>'})" title="查找带回">选择</a>
				</td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
</div>
</form>
